package com.zhongwang.business.gen.entity;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class VwCraWorktimeExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public VwCraWorktimeExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andProcessIsNull() {
            addCriterion("process is null");
            return (Criteria) this;
        }

        public Criteria andProcessIsNotNull() {
            addCriterion("process is not null");
            return (Criteria) this;
        }

        public Criteria andProcessEqualTo(String value) {
            addCriterion("process =", value, "process");
            return (Criteria) this;
        }

        public Criteria andProcessNotEqualTo(String value) {
            addCriterion("process <>", value, "process");
            return (Criteria) this;
        }

        public Criteria andProcessGreaterThan(String value) {
            addCriterion("process >", value, "process");
            return (Criteria) this;
        }

        public Criteria andProcessGreaterThanOrEqualTo(String value) {
            addCriterion("process >=", value, "process");
            return (Criteria) this;
        }

        public Criteria andProcessLessThan(String value) {
            addCriterion("process <", value, "process");
            return (Criteria) this;
        }

        public Criteria andProcessLessThanOrEqualTo(String value) {
            addCriterion("process <=", value, "process");
            return (Criteria) this;
        }

        public Criteria andProcessLike(String value) {
            addCriterion("process like", value, "process");
            return (Criteria) this;
        }

        public Criteria andProcessNotLike(String value) {
            addCriterion("process not like", value, "process");
            return (Criteria) this;
        }

        public Criteria andProcessIn(List<String> values) {
            addCriterion("process in", values, "process");
            return (Criteria) this;
        }

        public Criteria andProcessNotIn(List<String> values) {
            addCriterion("process not in", values, "process");
            return (Criteria) this;
        }

        public Criteria andProcessBetween(String value1, String value2) {
            addCriterion("process between", value1, value2, "process");
            return (Criteria) this;
        }

        public Criteria andProcessNotBetween(String value1, String value2) {
            addCriterion("process not between", value1, value2, "process");
            return (Criteria) this;
        }

        public Criteria andEquNameIsNull() {
            addCriterion("equ_name is null");
            return (Criteria) this;
        }

        public Criteria andEquNameIsNotNull() {
            addCriterion("equ_name is not null");
            return (Criteria) this;
        }

        public Criteria andEquNameEqualTo(String value) {
            addCriterion("equ_name =", value, "equName");
            return (Criteria) this;
        }

        public Criteria andEquNameNotEqualTo(String value) {
            addCriterion("equ_name <>", value, "equName");
            return (Criteria) this;
        }

        public Criteria andEquNameGreaterThan(String value) {
            addCriterion("equ_name >", value, "equName");
            return (Criteria) this;
        }

        public Criteria andEquNameGreaterThanOrEqualTo(String value) {
            addCriterion("equ_name >=", value, "equName");
            return (Criteria) this;
        }

        public Criteria andEquNameLessThan(String value) {
            addCriterion("equ_name <", value, "equName");
            return (Criteria) this;
        }

        public Criteria andEquNameLessThanOrEqualTo(String value) {
            addCriterion("equ_name <=", value, "equName");
            return (Criteria) this;
        }

        public Criteria andEquNameLike(String value) {
            addCriterion("equ_name like", value, "equName");
            return (Criteria) this;
        }

        public Criteria andEquNameNotLike(String value) {
            addCriterion("equ_name not like", value, "equName");
            return (Criteria) this;
        }

        public Criteria andEquNameIn(List<String> values) {
            addCriterion("equ_name in", values, "equName");
            return (Criteria) this;
        }

        public Criteria andEquNameNotIn(List<String> values) {
            addCriterion("equ_name not in", values, "equName");
            return (Criteria) this;
        }

        public Criteria andEquNameBetween(String value1, String value2) {
            addCriterion("equ_name between", value1, value2, "equName");
            return (Criteria) this;
        }

        public Criteria andEquNameNotBetween(String value1, String value2) {
            addCriterion("equ_name not between", value1, value2, "equName");
            return (Criteria) this;
        }

        public Criteria andEquTypeIsNull() {
            addCriterion("equ_type is null");
            return (Criteria) this;
        }

        public Criteria andEquTypeIsNotNull() {
            addCriterion("equ_type is not null");
            return (Criteria) this;
        }

        public Criteria andEquTypeEqualTo(String value) {
            addCriterion("equ_type =", value, "equType");
            return (Criteria) this;
        }

        public Criteria andEquTypeNotEqualTo(String value) {
            addCriterion("equ_type <>", value, "equType");
            return (Criteria) this;
        }

        public Criteria andEquTypeGreaterThan(String value) {
            addCriterion("equ_type >", value, "equType");
            return (Criteria) this;
        }

        public Criteria andEquTypeGreaterThanOrEqualTo(String value) {
            addCriterion("equ_type >=", value, "equType");
            return (Criteria) this;
        }

        public Criteria andEquTypeLessThan(String value) {
            addCriterion("equ_type <", value, "equType");
            return (Criteria) this;
        }

        public Criteria andEquTypeLessThanOrEqualTo(String value) {
            addCriterion("equ_type <=", value, "equType");
            return (Criteria) this;
        }

        public Criteria andEquTypeLike(String value) {
            addCriterion("equ_type like", value, "equType");
            return (Criteria) this;
        }

        public Criteria andEquTypeNotLike(String value) {
            addCriterion("equ_type not like", value, "equType");
            return (Criteria) this;
        }

        public Criteria andEquTypeIn(List<String> values) {
            addCriterion("equ_type in", values, "equType");
            return (Criteria) this;
        }

        public Criteria andEquTypeNotIn(List<String> values) {
            addCriterion("equ_type not in", values, "equType");
            return (Criteria) this;
        }

        public Criteria andEquTypeBetween(String value1, String value2) {
            addCriterion("equ_type between", value1, value2, "equType");
            return (Criteria) this;
        }

        public Criteria andEquTypeNotBetween(String value1, String value2) {
            addCriterion("equ_type not between", value1, value2, "equType");
            return (Criteria) this;
        }

        public Criteria andWorkTimeOneIsNull() {
            addCriterion("work_time_one is null");
            return (Criteria) this;
        }

        public Criteria andWorkTimeOneIsNotNull() {
            addCriterion("work_time_one is not null");
            return (Criteria) this;
        }

        public Criteria andWorkTimeOneEqualTo(BigDecimal value) {
            addCriterion("work_time_one =", value, "workTimeOne");
            return (Criteria) this;
        }

        public Criteria andWorkTimeOneNotEqualTo(BigDecimal value) {
            addCriterion("work_time_one <>", value, "workTimeOne");
            return (Criteria) this;
        }

        public Criteria andWorkTimeOneGreaterThan(BigDecimal value) {
            addCriterion("work_time_one >", value, "workTimeOne");
            return (Criteria) this;
        }

        public Criteria andWorkTimeOneGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("work_time_one >=", value, "workTimeOne");
            return (Criteria) this;
        }

        public Criteria andWorkTimeOneLessThan(BigDecimal value) {
            addCriterion("work_time_one <", value, "workTimeOne");
            return (Criteria) this;
        }

        public Criteria andWorkTimeOneLessThanOrEqualTo(BigDecimal value) {
            addCriterion("work_time_one <=", value, "workTimeOne");
            return (Criteria) this;
        }

        public Criteria andWorkTimeOneIn(List<BigDecimal> values) {
            addCriterion("work_time_one in", values, "workTimeOne");
            return (Criteria) this;
        }

        public Criteria andWorkTimeOneNotIn(List<BigDecimal> values) {
            addCriterion("work_time_one not in", values, "workTimeOne");
            return (Criteria) this;
        }

        public Criteria andWorkTimeOneBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("work_time_one between", value1, value2, "workTimeOne");
            return (Criteria) this;
        }

        public Criteria andWorkTimeOneNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("work_time_one not between", value1, value2, "workTimeOne");
            return (Criteria) this;
        }

        public Criteria andWorkTimeTwoIsNull() {
            addCriterion("work_time_two is null");
            return (Criteria) this;
        }

        public Criteria andWorkTimeTwoIsNotNull() {
            addCriterion("work_time_two is not null");
            return (Criteria) this;
        }

        public Criteria andWorkTimeTwoEqualTo(BigDecimal value) {
            addCriterion("work_time_two =", value, "workTimeTwo");
            return (Criteria) this;
        }

        public Criteria andWorkTimeTwoNotEqualTo(BigDecimal value) {
            addCriterion("work_time_two <>", value, "workTimeTwo");
            return (Criteria) this;
        }

        public Criteria andWorkTimeTwoGreaterThan(BigDecimal value) {
            addCriterion("work_time_two >", value, "workTimeTwo");
            return (Criteria) this;
        }

        public Criteria andWorkTimeTwoGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("work_time_two >=", value, "workTimeTwo");
            return (Criteria) this;
        }

        public Criteria andWorkTimeTwoLessThan(BigDecimal value) {
            addCriterion("work_time_two <", value, "workTimeTwo");
            return (Criteria) this;
        }

        public Criteria andWorkTimeTwoLessThanOrEqualTo(BigDecimal value) {
            addCriterion("work_time_two <=", value, "workTimeTwo");
            return (Criteria) this;
        }

        public Criteria andWorkTimeTwoIn(List<BigDecimal> values) {
            addCriterion("work_time_two in", values, "workTimeTwo");
            return (Criteria) this;
        }

        public Criteria andWorkTimeTwoNotIn(List<BigDecimal> values) {
            addCriterion("work_time_two not in", values, "workTimeTwo");
            return (Criteria) this;
        }

        public Criteria andWorkTimeTwoBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("work_time_two between", value1, value2, "workTimeTwo");
            return (Criteria) this;
        }

        public Criteria andWorkTimeTwoNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("work_time_two not between", value1, value2, "workTimeTwo");
            return (Criteria) this;
        }

        public Criteria andIsDelIsNull() {
            addCriterion("is_del is null");
            return (Criteria) this;
        }

        public Criteria andIsDelIsNotNull() {
            addCriterion("is_del is not null");
            return (Criteria) this;
        }

        public Criteria andIsDelEqualTo(Byte value) {
            addCriterion("is_del =", value, "isDel");
            return (Criteria) this;
        }

        public Criteria andIsDelNotEqualTo(Byte value) {
            addCriterion("is_del <>", value, "isDel");
            return (Criteria) this;
        }

        public Criteria andIsDelGreaterThan(Byte value) {
            addCriterion("is_del >", value, "isDel");
            return (Criteria) this;
        }

        public Criteria andIsDelGreaterThanOrEqualTo(Byte value) {
            addCriterion("is_del >=", value, "isDel");
            return (Criteria) this;
        }

        public Criteria andIsDelLessThan(Byte value) {
            addCriterion("is_del <", value, "isDel");
            return (Criteria) this;
        }

        public Criteria andIsDelLessThanOrEqualTo(Byte value) {
            addCriterion("is_del <=", value, "isDel");
            return (Criteria) this;
        }

        public Criteria andIsDelIn(List<Byte> values) {
            addCriterion("is_del in", values, "isDel");
            return (Criteria) this;
        }

        public Criteria andIsDelNotIn(List<Byte> values) {
            addCriterion("is_del not in", values, "isDel");
            return (Criteria) this;
        }

        public Criteria andIsDelBetween(Byte value1, Byte value2) {
            addCriterion("is_del between", value1, value2, "isDel");
            return (Criteria) this;
        }

        public Criteria andIsDelNotBetween(Byte value1, Byte value2) {
            addCriterion("is_del not between", value1, value2, "isDel");
            return (Criteria) this;
        }

        public Criteria andCardIdIsNull() {
            addCriterion("card_id is null");
            return (Criteria) this;
        }

        public Criteria andCardIdIsNotNull() {
            addCriterion("card_id is not null");
            return (Criteria) this;
        }

        public Criteria andCardIdEqualTo(Integer value) {
            addCriterion("card_id =", value, "cardId");
            return (Criteria) this;
        }

        public Criteria andCardIdNotEqualTo(Integer value) {
            addCriterion("card_id <>", value, "cardId");
            return (Criteria) this;
        }

        public Criteria andCardIdGreaterThan(Integer value) {
            addCriterion("card_id >", value, "cardId");
            return (Criteria) this;
        }

        public Criteria andCardIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("card_id >=", value, "cardId");
            return (Criteria) this;
        }

        public Criteria andCardIdLessThan(Integer value) {
            addCriterion("card_id <", value, "cardId");
            return (Criteria) this;
        }

        public Criteria andCardIdLessThanOrEqualTo(Integer value) {
            addCriterion("card_id <=", value, "cardId");
            return (Criteria) this;
        }

        public Criteria andCardIdIn(List<Integer> values) {
            addCriterion("card_id in", values, "cardId");
            return (Criteria) this;
        }

        public Criteria andCardIdNotIn(List<Integer> values) {
            addCriterion("card_id not in", values, "cardId");
            return (Criteria) this;
        }

        public Criteria andCardIdBetween(Integer value1, Integer value2) {
            addCriterion("card_id between", value1, value2, "cardId");
            return (Criteria) this;
        }

        public Criteria andCardIdNotBetween(Integer value1, Integer value2) {
            addCriterion("card_id not between", value1, value2, "cardId");
            return (Criteria) this;
        }

        public Criteria andCardDetailIdIsNull() {
            addCriterion("card_detail_id is null");
            return (Criteria) this;
        }

        public Criteria andCardDetailIdIsNotNull() {
            addCriterion("card_detail_id is not null");
            return (Criteria) this;
        }

        public Criteria andCardDetailIdEqualTo(Integer value) {
            addCriterion("card_detail_id =", value, "cardDetailId");
            return (Criteria) this;
        }

        public Criteria andCardDetailIdNotEqualTo(Integer value) {
            addCriterion("card_detail_id <>", value, "cardDetailId");
            return (Criteria) this;
        }

        public Criteria andCardDetailIdGreaterThan(Integer value) {
            addCriterion("card_detail_id >", value, "cardDetailId");
            return (Criteria) this;
        }

        public Criteria andCardDetailIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("card_detail_id >=", value, "cardDetailId");
            return (Criteria) this;
        }

        public Criteria andCardDetailIdLessThan(Integer value) {
            addCriterion("card_detail_id <", value, "cardDetailId");
            return (Criteria) this;
        }

        public Criteria andCardDetailIdLessThanOrEqualTo(Integer value) {
            addCriterion("card_detail_id <=", value, "cardDetailId");
            return (Criteria) this;
        }

        public Criteria andCardDetailIdIn(List<Integer> values) {
            addCriterion("card_detail_id in", values, "cardDetailId");
            return (Criteria) this;
        }

        public Criteria andCardDetailIdNotIn(List<Integer> values) {
            addCriterion("card_detail_id not in", values, "cardDetailId");
            return (Criteria) this;
        }

        public Criteria andCardDetailIdBetween(Integer value1, Integer value2) {
            addCriterion("card_detail_id between", value1, value2, "cardDetailId");
            return (Criteria) this;
        }

        public Criteria andCardDetailIdNotBetween(Integer value1, Integer value2) {
            addCriterion("card_detail_id not between", value1, value2, "cardDetailId");
            return (Criteria) this;
        }

        public Criteria andRecTimeIsNull() {
            addCriterion("rec_time is null");
            return (Criteria) this;
        }

        public Criteria andRecTimeIsNotNull() {
            addCriterion("rec_time is not null");
            return (Criteria) this;
        }

        public Criteria andRecTimeEqualTo(Date value) {
            addCriterion("rec_time =", value, "recTime");
            return (Criteria) this;
        }

        public Criteria andRecTimeNotEqualTo(Date value) {
            addCriterion("rec_time <>", value, "recTime");
            return (Criteria) this;
        }

        public Criteria andRecTimeGreaterThan(Date value) {
            addCriterion("rec_time >", value, "recTime");
            return (Criteria) this;
        }

        public Criteria andRecTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("rec_time >=", value, "recTime");
            return (Criteria) this;
        }

        public Criteria andRecTimeLessThan(Date value) {
            addCriterion("rec_time <", value, "recTime");
            return (Criteria) this;
        }

        public Criteria andRecTimeLessThanOrEqualTo(Date value) {
            addCriterion("rec_time <=", value, "recTime");
            return (Criteria) this;
        }

        public Criteria andRecTimeIn(List<Date> values) {
            addCriterion("rec_time in", values, "recTime");
            return (Criteria) this;
        }

        public Criteria andRecTimeNotIn(List<Date> values) {
            addCriterion("rec_time not in", values, "recTime");
            return (Criteria) this;
        }

        public Criteria andRecTimeBetween(Date value1, Date value2) {
            addCriterion("rec_time between", value1, value2, "recTime");
            return (Criteria) this;
        }

        public Criteria andRecTimeNotBetween(Date value1, Date value2) {
            addCriterion("rec_time not between", value1, value2, "recTime");
            return (Criteria) this;
        }

        public Criteria andRecStatusIsNull() {
            addCriterion("rec_status is null");
            return (Criteria) this;
        }

        public Criteria andRecStatusIsNotNull() {
            addCriterion("rec_status is not null");
            return (Criteria) this;
        }

        public Criteria andRecStatusEqualTo(Integer value) {
            addCriterion("rec_status =", value, "recStatus");
            return (Criteria) this;
        }

        public Criteria andRecStatusNotEqualTo(Integer value) {
            addCriterion("rec_status <>", value, "recStatus");
            return (Criteria) this;
        }

        public Criteria andRecStatusGreaterThan(Integer value) {
            addCriterion("rec_status >", value, "recStatus");
            return (Criteria) this;
        }

        public Criteria andRecStatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("rec_status >=", value, "recStatus");
            return (Criteria) this;
        }

        public Criteria andRecStatusLessThan(Integer value) {
            addCriterion("rec_status <", value, "recStatus");
            return (Criteria) this;
        }

        public Criteria andRecStatusLessThanOrEqualTo(Integer value) {
            addCriterion("rec_status <=", value, "recStatus");
            return (Criteria) this;
        }

        public Criteria andRecStatusIn(List<Integer> values) {
            addCriterion("rec_status in", values, "recStatus");
            return (Criteria) this;
        }

        public Criteria andRecStatusNotIn(List<Integer> values) {
            addCriterion("rec_status not in", values, "recStatus");
            return (Criteria) this;
        }

        public Criteria andRecStatusBetween(Integer value1, Integer value2) {
            addCriterion("rec_status between", value1, value2, "recStatus");
            return (Criteria) this;
        }

        public Criteria andRecStatusNotBetween(Integer value1, Integer value2) {
            addCriterion("rec_status not between", value1, value2, "recStatus");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}